/**
 * Comment相关接口路由调用
 */
const express = require('express')
const CommentsRouters = express.Router()
const CommentsController = require('../controllers/CommentsController')

/**
 * 新增-comment- 字段如下
 *   comment_date: String, // comment时间
 *     comment_user_id: String, // comment人的id
 *     comment_user_name: String, // comment人的name
 *     comment_user_email: String, // comment的邮箱
 *     comment_content: String, //内容
 *     comment_status: Number, // 是否可见，1可见0屏蔽
 *     comment_id: String,
 *     comment_news_id: String,
 */

CommentsRouters.post('/comment/addComment', CommentsController.addComment)

/**
 * 删除
 */
CommentsRouters.post('/comment/deleteOne', CommentsController.deleteOne)

/***
 * 屏蔽
 */
CommentsRouters.post('/comment/shield', CommentsController.shield)

/**
 * 查询列表
 */
CommentsRouters.get('/comment/query', CommentsController.query)

module.exports = CommentsRouters
